;===========================================
; NAME: OPTION.A
; DESC: Configuration options for .S files
; HISTORY:
; 02.28.2002: ver 0.0
;===========================================

;SDRAM_END			EQU	0x34000000

;Start address of each stacks,
_STACK_BASEADDRESS	EQU (SDRAM_END-0x8000)	;0x33ff8000
_MMUTT_STARTADDRESS	EQU (SDRAM_END-0x8000)	;0x33ff8000
_ISR_STARTADDRESS	EQU (SDRAM_END-0x100)	;0x33ffff00

		GBLL 	PLL_ON_START  
PLL_ON_START	SETL 	{TRUE}


		GBLL	ENDIAN_CHANGE
ENDIAN_CHANGE	SETL	{FALSE}

		GBLA	ENTRY_BUS_WIDTH
ENTRY_BUS_WIDTH	SETA	16	


;BUSWIDTH = 16,32
		GBLA    BUSWIDTH	;max. bus width for the GPIO configuration
BUSWIDTH	SETA    32


		GBLA	FCLK
FCLK		SETA	266000000

;	[ FCLK = 50000000	
;M_MDIV		EQU	0x5c	;Fin=12.0MHz Fout=50.0MHz
;M_PDIV		EQU	0x4
;M_SDIV		EQU	0x2
;    	]

	[ FCLK = 266000000       ;now is 400MHZ          	
M_MDIV		EQU	92;0x7f	;Fin=12.0MHz Fout=405 Mhz //Fout=50.0MHz
M_PDIV		EQU	1;0x2
M_SDIV		EQU	1;0x1
CLKDIV_VAL	EQU	5;1:4:8 fclk:hclk:pclk
    	]    	
  	

	END
